<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
		<div class="message-footer clearfix">
						<div class="pull-left">共${res.data.records}条 </div>

						<div class="pull-right">
							<div class="inline middle"> 当前页 ${res.data.page} of ${res.data.total} </div>

																&nbsp; &nbsp;
							<ul class="pagination middle">
								<li class="first">
										<a href="javascript:;"><i class="icon-step-backward middle"></i></a>
								</li>

								<li class="prev">
										<a href="javascript:;"><i class="icon-caret-left bigger-140 middle"></i></a>
								</li>

								<li>
										<span><input value="${res.data.page}" maxlength="3" type="text" /></span>
								</li>

								<li class="next">
										<a href="javascript:;"><i class="icon-caret-right bigger-140 middle"></i></a>
								</li>

								<li class="last">
										<a href="javascript:;"><i class="icon-step-forward middle"></i></a>							
								</li>
							</ul>										
					</div>
					
					<input type="hidden"  id=records  value="${res.data.records}"/>		<!-- 总记录数 -->
					<input type="hidden"  id="pageSize"  value="${res.data.pageSize}"/> <!-- 每页个数 --> 
 					<input type="hidden"  id="pageCurrent"  value="${res.data.page}"/>  <!-- 当前页page --> 
					<input type="hidden"  id="totalPage"  value="${res.data.total}"/>	<!-- 总页数 --> 
		
		<script type="text/javascript">
			function setPage() {
				var pageCurrent = parseInt($('#pageCurrent').val());
				var totalPage = parseInt($('#totalPage').val());
				var _li = $('.pagination li');
				_li.removeClass('disabled');
				if(pageCurrent <= 1){
					$('.pagination').find('.first, .prev').addClass('disabled');
				}
				if(pageCurrent >= totalPage){
					$('.pagination').find('.last, .next').addClass('disabled');
				}
					
				_li.click(function() {
					if($(this).hasClass('disabled'))
						return false;
					var to_page = '';
					if($(this).hasClass('first'))
						to_page = 1;
					else if($(this).hasClass('last'))
						to_page = totalPage;
					else if($(this).hasClass('prev'))
						to_page = pageCurrent - 1;
					else if($(this).hasClass('next'))
						to_page = pageCurrent + 1;
					if(!to_page)
						return false;
					var url = window.location.href.replace(/\?page=\d+&/, '?').replace(/[?|&]page=\d+/, '');
					var tag = (url.indexOf('?') > 0) ? '&' : '?';
	
					window.location.href = url + tag + 'page=' + to_page;
				})
			}
			setPage();
			</script>